home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / buport.doc < prev    next >
Text File  |  1995-03-31  |  3KB  |  71 lines

  1. BUPORT - Backup all items from a port to IO, v1.0 
  2. From: Poul-Henning Kamp <phk@data.fls.dk> 
  3. Newsgroups: comp.sources.hp48 
  4. Date: Mon, 11 Nov 1991 00:28:14 GMT 
  5. ====================================== 
  6.  
  7. This program will use SEND to send all item in a specified port to a 
  8. remote computer using whatever parameters setup in IOPAR. 
  9.  
  10.                 STACK-DIAGRAM 
  11.         ------------------------------ 
  12.         n    ->   BUPORT   -> 
  13.          port 
  14.         ------------------------------ 
  15.  
  16. On the remote computer one file for each item will be created, with names 
  17. constructed to identify the object they contain.  In addition a user-RPL 
  18. program is stored that will restore all of these again. 
  19.  
  20. Libraries comes in two sorts, those which used the "HP-naming" and those  
  21. which haven't seen the point :-) 
  22.  
  23. If the name-string of the library has the form ??????:??????...  the result- 
  24. ing file will have a name on this form: l_??????.p_? where the part before 
  25. the colon goes before the point, and the portnumber goes after the underscore. 
  26. Otherwise the file will be l_####.P_? where the number (id) of the library is 
  27. used instead of its (unproper) name; again the portnumber goes last. 
  28.  
  29. Backups are all the other objects, they get names of the form b_??????.p_? 
  30. where the name stored in the backup is put before the point, and the port- 
  31. number goes last. 
  32.  
  33. The Restore program is named restore.p_? where the portnumber goes last. 
  34. This program is in user-RPL and is always transmitted in ASCII format, 
  35. you can therefore edit it before use, both on the computer and the  
  36. calculator.  The program takes the portnumber to restore into as a real 
  37. from the stack. 
  38.  
  39. To give an idea of how it looks, this is my result of 2 BUPORT: 
  40. ---------------------------------------------------------------------------- 
  41.  Volume in drive C has no label 
  42.  Directory of  C:\BACKUP48 
  43.  
  44. B_NBPAR  P_2    B_UTIL   P_2    B_BASE   P_2    L_NB     P_2    B_PHK    P_2 
  45. L_TETRIS P_2    L_1111   P_2    B_GO     P_2    B_INBPAR P_2    L_1092   P_2 
  46. L_GAMES  P_2    B_FLAGS  P_2    B_MOVE   P_2    L_PHK    P_2    B_MINE   P_2 
  47. L_UTILS  P_2    B_SKY    P_2    B_SKYS   P_2    L_1214   P_2    B_MORSE  P_2 
  48. B_CLK    P_2    B_INSTAL P_2    B_EXEC   P_2    RESTORE  P_2     
  49.        24 File(s)  23406592 bytes free 
  50. ---------------------------------------------------------------------------- 
  51.  
  52. Notes: 
  53. ====== 
  54. I have not tried to optimize this for time nor space, I don't really used 
  55. it that much, feel free to improve it to suit your own taste. 
  56.  
  57. Yes, it works with ROM & write-protected RAM cards also. 
  58.  
  59. Warnings: 
  60. ========= 
  61. This program uses non-documented features, the entry-points of which are 
  62. listed in the top of the source.  *** This is tested on rev.E only *** 
  63.  
  64. BYTES: #1c04h 537 
  65.  
  66. phk@data.fls.dk       ||  A host is a host from coast to coast, 
  67. Poul-Henning Kamp      ||  & no one will talk to a host that's close, 
  68. FLS DATA A/S          ||  Unless the host (that isn't close) 
  69. Phone: (+45) 36 18 12 35  ||  is busy, hung or dead. 
  70. Fax:   (+45) 36 18 12 18  ||                 Anon (?)  
  71.